<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
 <HEAD>
  <TITLE>树面板简单示例</TITLE>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" type="text/css" href="../../ext-4.0/resources/css/ext-all.css" />
  <script type="text/javascript" src="../../ext-4.0/bootstrap.js"></script>
  <script type="text/javascript" src="../../ext-4.0/locale/ext-lang-zh_CN.js"></script>
  <script type="text/javascript">
	Ext.onReady(function(){
		var tree = Ext.create('Ext.tree.Panel', {
		    title: '树面板简单示例',
		    width : 150,
		    height : 100,
		    renderTo: Ext.getBody(),
		    root: {
		        text: '树根',//节点名称
		        expanded: true,//默认展开根节点
		        children: [{
		            text: '节点一',//节点名称
		            leaf: true//true说明为叶子节点
		        }, {
		            text: '节点二',//节点名称
		            leaf: true//true说明为叶子节点
		        }]
		    }
		});
	});
  </script>
 </HEAD>
 <BODY STYLE="margin: 10px"></BODY>
</HTML>
